﻿using ReactiveUI;
using System.Reactive.Disposables;

namespace ScienceAIApp.Views.ToolBarPanel;
/// <summary>
/// Interaction logic for CrossLineView.xaml
/// </summary>
public partial class CrossLineView
{
    public CrossLineView()
    {
        InitializeComponent();
        this.WhenActivated(_activated);
    }

    private void _activated(CompositeDisposable disposable)
    {
        this.OneWayBind(ViewModel,vm=>vm.PositionTxt,v=>v.CoordinateTxt.Text).DisposeWith(disposable);
        this.OneWayBind(ViewModel,vm=>vm.CtValTxt,v=>v.IntensityTxt.Text).DisposeWith(disposable);
    }
}
